name = '张三'
age = 20

a = b = c = d = 100
name1, age1 = '李四', 22  # 元组分解赋值
print(name, age)
print(name1, age1)

[name2, age2] = ['王五', 30]  # 列表分解赋值
print(name2, age2)

a, b, c, d = 'room' # 字符串分解赋值
print(a)
print(b)
print(c)
print(d)

# 拓展的字符串解包赋值
a, *b = 'room'
print(a)
print(b)

print('----------输入输出语句 也是典型的顺序结构------------')
name=input('请输入您的姓名:')
age=eval(input('请输入您的年龄:'))
lucky_number=eval(input('请输入您的幸运数字:'))

print('姓名:', name)
print('年龄:', age)
print('幸运数字:', lucky_number)
